{assign $our = $war->war_ourscore_map1 + $war->war_ourscore_map2}
{assign $their = $war->war_theirscore_map1 + $war->war_theirscore_map2}
{if $our > $their}
{assign $class = "war_win"}
{elseif $our < $their}
{assign $class = "war_lost"}
{else}
{assign $class = "war_draw"}
{/if}
	<h2><span>{@havefnu~wars.results@}</span></h2>
    <div class="box">
		<div class="fakeform">
			<div class="two-cols-details">
				<span class="col head">{$war->team_name|eschtml}</span>				
				<span class="col head">{$war->war_clanadv|eschtml}</span>			
			</div>
            <div class="score"><span class="{$class}">[ {$our} - {$their} ]</span></div>
			<div class="inbox"><h2>{@havefnu~wars.infos@}</h2>
				<p>
				<span class="label">Date</span>: {$war->war_date|jdatetime:'db_date':'lang_date'}<br/>
				<span class="label">Type</span>: {$war->war_type|eschtml}<br/>
				<span class="label">Cartes</span>: {$war->war_map1|eschtml} - {$war->war_map2|eschtml}<br/>
				</p>
			</div>

			<div class="inbox"><h2>{@havefnu~wars.server@}</h2>
				<p>
				<span class="label">IP</span> : {$war->war_server|eschtml}<br/>
				<span class="label">mot de passe</span>: {$war->war_serverpass|eschtml}<br/>
				</p>
			</div>

			<div class="inbox"><h2>{@havefnu~wars.lineup@}</h2>
				<p>{$war->war_lineup|eschtml}</p>
			</div>
			<br/><br/>
			<div class="comment"><h2>{@havefnu~wars.comments@}</h2>
			 {$war->war_comment}
			</div>
            <fieldset><legend>{@havefnu~wars.maps@}</legend>
			<table width="100%" class="score" cellpadding="0" cellspacing="0">
				<thead>
					<tr>
						<th>{$war->war_map1|eschtml}</th><th>{$war->war_map2|eschtml}</th>
					</tr>
				</thead>
				<tbody>
					<tr>			
						<td><img src="{$j_basepath}images/maps/{$team->section_image_dir}/{$war->war_map1}.jpg" alt="{$war->war_map1}"/></td><td><img src="{$j_basepath}images/maps/{$team->section_image_dir}/{$war->war_map2}.jpg" alt="{$war->war_map2}"/></td>
					</tr>
					<tr>
{if $war->war_ourscore_map1 > $war->war_theirscore_map1}
{assign $class_map1 = 'war_win'}
{elseif $war->war_ourscore_map1 < $war->war_theirscore_map1}
{assign $class_map1 = 'war_lost'}
{else}
{assign $class_map1 = 'war_draw'}
{/if}
{if $war->war_ourscore_map2 > $war->war_theirscore_map2}
{assign $class_map2 = 'war_win'}
{elseif $war->war_ourscore_map2 < $war->war_theirscore_map2}
{assign $class_map2 = 'war_lost'}
{else}
{assign $class_map2 = 'war_draw'}
{/if}
						<td>{@havefnu~wars.score@}: <span class="{$class_map1}">{$war->war_ourscore_map1} - {$war->war_theirscore_map1}</span></td><td>{@havefnu~wars.score@}: <span class="{$class_map2}">{$war->war_ourscore_map2} - {$war->war_theirscore_map2}</span></td>
					</tr>
				</tbody>
			</table>
            </fieldset>
        </div>
    </div>
